import request from '../utils/request.js'

// 获取上新专利
export function getNewPatent(data) {
	return request.request({
		url: '/exploitPatent/selectList',
		method: 'POST',
		data
	})
}

// 获取上新专利详情
export function getNewPatentDetails(data) {
	return request.request({
		url: '/exploitPatent/getDetail',
		method: 'POST',
		data
	})
}
// 问题留言
export function feedBack(data) {
	return request.request({
		url: '/feedBack/save',
		method: 'POST',
		data
	})
}
// 获取合同专利
export function getContract(data) {
	return request.request({
		url: '/contract/selectList',
		method: 'POST',
		data
	})
}
// banner 
export function getBanner(data) {
	return request.request({
		url: '/notice/selecBannertList',
		method: 'POST',
		data
	})
}
// 获取合同专利详情
export function getContractDetails(data) {
	return request.request({
		url: '/contract/getDetail',
		method: 'POST',
		data
	})
}
// 获取订单
export function getOrder(data) {
	return request.request({
		url: '/orderManager/selectList',
		method: 'POST',
		data
	})
}
// 获取订单详情
export function getOrderDetails(data) {
	return request.request({
		url: '/orderManager/getDetail',
		method: 'POST',
		data
	})
}

// 评价详情
export function getEvaluate(data) {
	return request.request({
		url: '/evaluate/selectList',
		method: 'POST',
		data
	})
}
// 新增评价
export function addEvaluate(data) {
	return request.request({
		url: '/evaluate/saveOrUpdate',
		method: 'POST',
		data
	})
}
// 获取专利
export function getPatent(data) {
	return request.request({
		url: '/customerPatent/selectList',
		method: 'POST',
		data
	})
}
// 获取专利详情
export function getPatentDetails(data) {
	return request.request({
		url: '/customerPatent/getDetail',
		method: 'POST',
		data
	})
}
// 新增专利
export function addPatent(data) {
	return request.request({
		url: '/customerPatent/save',
		method: 'POST',
		data
	})
}

// 用户详情
export function userInfo(data) {
	return request.request({
		url: '/user/getUserDetail',
		method: 'POST',
		data
	})
}

// 手机号
export function userInfoPhone(data) {
	return request.request({
		url: '/loginApplet',
		method: 'POST',
		data
	})
}

// 获取信息code
export function getCode(data) {
	return request.request({
		url: '/getWechatinfos',
		method: 'POST',
		data
	})
}
export function getCodephone(data) {
	return request.request({
		url: '/getuserphonenumber',
		method: 'POST',
		data
	})
}
